package com.zoe.onelink.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-12-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class InnerApiException extends RuntimeException {

    private static final long serialVersionUID = -4960426749593472672L;

    public InnerApiException(String code, String message, String error) {
        super(message);
        this.code = code;
        this.error = error;
    }

    private String code;

    private String error;

    private Boolean bizException;

}
